<div class="bg_greenyellow round_10 quarter shadow_in_0">
    <ul class="rightmenu">
        <li><a href="<?php echo $this->url(array('controller' => 'mymca', 'action' => 'index'), null, true) ?>" title="" >Powrót</a></li>
    </ul>      
</div>    

<div class="threequarter last fixed ">
     
    <h6 class ="round_5 shadow_out_4 bg_mediumblue">Nowa aukcja</h6>
     <?php echo $this->form ?>
    
    <hr />
        <h6 class ="round_5 shadow_out_4 bg_mediumblue">Zdefiniowane towary</h6>
<table class="datalist" width="100%">
   <caption>
       Towary
   </caption>
   <thead>
      <tr>
         <th>#</th>
         <th scope="col">Nazwa</th>
         <th scope="col">Typ</th>
         <th scope="col">Opis</th>
         <th scope="col">Opis</th>

      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <th>&nbsp;</th>
         <th>&nbsp;</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>

      </tr>
   </tfoot>
   <tbody>
      <?php foreach ($this->commodities as $commodity) { ?>
      <tr>
         <th scope="row"><?php echo $commodity->getCommodity_id(); ?></th>
         <td><?php echo $commodity->getName(); ?></td>
         <td><?php echo $commodity->getCommodityTypeName(); ?></td>
         <td><?php echo substr($commodity->getDescription(),0,149).' ...'; ?></td>
         <td><a class="view_button styled_button grey" href="<?php echo $this->url(array('controller' => 'mymca', 'action' => 'edit-commodity','id'=>$commodity->getCommodity_id()), null, true) ?>">Więcej</a></td>
      </tr> 
      <?php } ?>

   </tbody>

</table>
    
     
</div>